
#include <iostream>
#include "ParseH264.h"
#include "FileHelp.h"
#include <assert.h>
#include "pcapParse.h"
#include "EventLoopMgr.h"
#include "AfSocket.h"
#include "NetMgr.h"
#include "TcpClient.h"

int main()
{
	TcpClient oTcpClient;
	int ret = oTcpClient.Connect("127.0.0.1", 8554);
	printf("m_sender Connect ret:%d \n", ret);

	char* data = "hello world ...";

	while (1)
	{

		ret = oTcpClient.Send(data, strlen(data));
		printf("########### oTcpClient.Send ret:%d \n", ret);

		std::this_thread::sleep_for(std::chrono::milliseconds(40));
	}

	getchar();
	std::cout << "Hello World!\n";
}
